home *** CD-ROM | disk | FTP | other *** search
- Path: Hermes.grace.irl.cri.nz!maths!peterm
- From: peterm@maths.grace.cri.nz (Peter McGavin)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Demo/game to OS friendly part II
- Date: 30 Jan 1996 00:06:24 GMT
- Organization: Industrial Research Ltd
- Message-ID: <PETERM.96Jan30130624@tui.maths.irl.cri.nz>
- References: <38232020@kone.fipnet.fi> <9PxXx*kka@aargh.incubus.sub.org>
- <4des65$bgk@serpens.rhein.de>,<38232076@kone.fipnet.fi>
- <4e1hk6$tfd@news.isc.rit.edu> <DLsCMt.MBt@wiloyee.shnet.org>
- NNTP-Posting-Host: tui.grace.cri.nz
- In-reply-to: chaos@wiloyee.shnet.org's message of Fri, 26 Jan 1996 11:16:04
- GMT
-
- chaos@wiloyee.shnet.org writes:
- >you can ofcourse use the chunky to planar routines of kick3.1, and chris
- >green did a really clever job, with special optimisations for akiko hardware
- >if present, but they are still far away from what you can do by yourself.
- >
- >sometimes, os routines are as good as what you cn do by yourself. the easier
- >the task, the bigger the chance that the os can do it as well. copying
- >memory is a very simple task
- >
- >but if the task is very complicated, like merging copperlists or doing c2p,
- >you can be SURE that more specialised routines can do a faster job.
- >
- >the best example are the routines for merging copperlists. on kick2.0 they
- >were really slow. with kick3.0 (orkick3.1) the speed got acceptable. but if
- >you want some really nice stuff, like complex paralaxing (see the game Mr.
- >Nutz), then it's useless to use the OS. Mr. Nutz runs very well on an A500
- >(50 fps), but using os it woun't run on an A4000.
- >
- >special routines win over general purpose routines, and an os can only
- >contain general pupose routines.
-
- These are not reasons for killing the OS. An OS compliant program can
- perform these copper tricks easily by:
-
- o install an input handler;
- o save GfxBase->ActiView;
- o LoadView(NULL); WaitTOF(); WaitTOF();
- o perform copper tricks as desired;
- o LoadView(saved_actiview);
- o deinstall input handler.
-
- This way the program only takes over what it needs (the custom gfx
- chips) and can continue using OS calls for everything else (like
- network play, disk caching, keyboard, etc). Of course this method
- doesn't work with gfx-cards or new Amigas unless it includes an option
- for entirely high-level gfx-calls.
- --
- Peter McGavin. (p.mcgavin@irl.cri.nz)
-